package com.lsfb.signln.Utils;

import android.content.Context;
import android.support.v7.widget.LinearLayoutManager;

import com.lsfb.signln.View.RecycleViewDivider;

/**
 * Created by Administrator on 2018/2/7 0007.
 */

public class LsfbUtils {
    /**
     * 横向的自定义分割线(listview类recycleview)
     *
     * @param mContext
     * @param color
     * @param height
     * @return
     */
    public static RecycleViewDivider getVERTICALLineDivider(Context mContext, int color, int height) {
        return new RecycleViewDivider(mContext, LinearLayoutManager.VERTICAL, com.zgscwjm.lsfbbasetemplate.utils.DensityUtils.dp2px(mContext, height), mContext.getResources().getColor(color));
    }

    /**
     * 纵向的自定义分割线(listview类recycleview)
     *
     * @param mContext
     * @param color
     * @param height
     * @return
     */
    public static RecycleViewDivider getHORIZONTALLineDivider(Context mContext, int color, int height) {
        return new RecycleViewDivider(mContext, LinearLayoutManager.HORIZONTAL, com.zgscwjm.lsfbbasetemplate.utils.DensityUtils.dp2px(mContext, height), mContext.getResources().getColor(color));
    }

}
